package games;

public class Tax extends Square {

    double tax;

    public Tax(String n, double t){
        super(n);
        tax = t;
    }

    @Override
    public void onSquare(Player p) {
        super.onSquare(p);
        p.loseMoney(tax);
    }

}
